package com.chushouya.manager.dto.admin.bannerposition;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("添加banner位置")
public class BannerPositionSaveDTO {

    /**
     * banner名称
     */
    @ApiModelProperty(value = "位置名称", example = "vivo", required = true)
    @NotBlank(message = "position名称不能为空")
    protected String positionName;

    /**
     * 是否显示
     */
    @ApiModelProperty(value = "状态", example = "true", required = true)
    @NotNull(message = "状态不能为空")
    protected Integer status;

    /**
     * 跳转地址
     */
    @ApiModelProperty(value = "上级ID")
    protected Long parentId;

    /**
     * 图片链接
     */
    @ApiModelProperty(value = "宽度")
    protected Integer positionWidth;

    /**
     * nav/nav_bottom
     */
    @ApiModelProperty(value = "高度")
    protected Integer positionHeight;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    protected Integer sort;

}
